import request from '@/utils/request';
import { method } from 'lodash';

// 启用流程
export function addProcessArticulated(data) {
  return request({
    url: '/maintain/maintain/wf-relation/start',
    method: 'get',
    params: data
  })
}
// 停用流程
export function closeProcessArticulated(data) {
    return request({
        url: '/maintain/maintain/wf-relation/end',
        method: 'get',
        params: data
    })
}
// 删除流程
export function deleteProcessArticulated(data) {
    return request({
        url: '/maintain/maintain/wf-relation/delete',
        method: 'get',
        params: data
    })
}
// 流程挂接
export function articulatedProcess(data) {
  return request({
    url: '/maintain/maintain/wf-relation/relate',
    method: 'post',
    params: data
})
}